<blockquote class="layui-elem-quote">
  <div class="layui-inline">
    <i class="layui-icon layui-icon-list layui-head-icon"></i>
    <span class="layui-font-16 layui-font-green">等级套餐</span>
  </div>
  <div class="layui-pull-right">
    <a class="layui-btn layui-btn-primary layui-border-green" href="{:url('/store/market/combo/create')}">添加套餐</a>
  </div>
</blockquote>
<div class="layui-card">
  <div class="layui-card-body">
    <form class="layui-form">
      <table class="layui-table">
        <thead>
          <tr>
          <th>ID</th>
          <th>套餐名称</th>
          <th>套餐图片</th>
          <th>套餐原价</th>
            <th>套餐现价</th>
          <th>状态</th>
          <th>创建时间</th>
          <th>更新时间</th>
          <th>操作</th>
          </tr> 
        </thead>
      <tbody>
    
      {foreach $list as $vo}
      <tr>
        <td>{$vo.id}</td>
        <td>{$vo.combo_name}</td>
        <td><img src="{$vo.combo_image}" class="layui-view-img"></td>
        <td>{$vo.origin_price}</td>
        <td>{$vo.sell_price}</td>
        <td>
            {empty name='$vo.status'}
              <span class="layui-font-red">下线</span>
            {else/}  
              <span class="layui-font-green">上线</span>
            {/empty}
        </td>
        <td>{$vo.create_time}</td>
        <td>{$vo.update_time}</td>
        <td>
          <a class="layui-btn layui-btn-sm" href="{:url('/store/market/combo/edit',['id'=> $vo.id])}">编辑</a>
          <a class="layui-btn layui-btn-sm layui-btn-danger del" data-url="{:url('/store/market/combo/delete',['id'=> $vo.id])}">删除</a>
        </td>
      </tr>
      {/foreach}
      </tbody>
      </table>
  </form>
  </div>
</div>
